package com.aier.common.common;

import javax.annotation.Resource;

import org.springframework.beans.factory.InitializingBean;

import com.aier.common.service.ISysCityService;

public class CityStart implements InitializingBean{

    @Resource(name = "sysCityService")
    private ISysCityService sysCityService;

    @Override
    public void afterPropertiesSet() throws Exception {
        //初始化城市数据
        CityUtil.initLoad(sysCityService);
    }

    public void setSysCityService(ISysCityService sysCityService) {
        this.sysCityService = sysCityService;
    }

}
